package core

import (
	"fmt"
	"regexp"
)

func FindDestStr(src, rex string) string {
	fmt.Println("rex:   ", rex)
	compileRegex := regexp.MustCompile(rex)
	matchArr := compileRegex.FindStringSubmatch(src)
	if len(matchArr) == 0 {

	}
	if len(matchArr) > 0 {
		return matchArr[len(matchArr)-1]
	}
	return ""
}
